//
//  TopicDetailsImageTableViewCell.m
//  XiangMuB
//
//  Created by 向修根 on 16/8/13.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "TopicDetailsImageTableViewCell.h"
#import "TopicDetailsModel.h"
#import <UIImageView+WebCache.h>
#import "ImageViewController.h"

@implementation TopicDetailsImageTableViewCell

- (void)layoutSubviews{
    [super layoutSubviews];
    self.userName.text = self.model.userName;
    [self.uesrHeaderPic sd_setImageWithURL:[NSURL URLWithString:self.model.userHeadPicUrl] placeholderImage:nil];
    self.array = self.model.picurl;
    
    [self.disImage sd_setImageWithURL:[NSURL URLWithString:self.array.firstObject] placeholderImage:nil];
    NSString *str = [NSString stringWithFormat:@"%@",self.model.supportCount];
    self.supportCount.text = str;
    
    NSString *str1 = [NSString stringWithFormat:@"%@",self.model.discussCount];
    self.discussCount.text = str1;
    
    self.contentLabel.text = self.model.content;
    //    弧度
    self.cellView.layer.cornerRadius = self.cellView.frame.size.width /50;
    self.cellView.layer.masksToBounds = YES;
    //   cell边框
    self.cellView.layer.borderWidth = 2;
    self.cellView.layer.borderColor = [[UIColor colorWithRed:192.0f/255.0f  green:192.0f/255.0f  blue:192.0f/255.0f  alpha:0.7]CGColor];
    

}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
